package org.simple.web.jwt.service;

import org.springframework.security.core.Authentication;
import org.springframework.security.core.userdetails.UserDetailsService;

/**
 * 项目名称：simple-framework
 * 类名称：AuthenticationService
 * 类描述：AuthenticationService
 * 创建时间：2018/11/27
 *
 * @author sisyphus   (E-mail:1620657419@qq.com)
 * @version v1.0
 */
public interface AuthenticationService extends UserDetailsService {

    /**
     * Authentication中的getName()必须返回入参时的name
     *
     * @param name 账户名
     * @return .
     */
    Authentication loadAuthenticationByName(String name);

}
